package export;

import org.junit.Test;

import java.util.Arrays;
import java.util.List;
import java.util.Map;

public class myTestLang {
    @Test
    public void test22() {

        System.out.println(Runtime.getRuntime().availableProcessors());
    }

    @Test
    public void testMethod() {

        MyLangCollector collector = new MyLangCollector();
        // 文件列表
        Map<String, List<String>> collect = Arrays.stream(new String[]{
            "/Users/judy/workspace/test/2020/test_gradle/src/test/java/export/DemoJava.java",
            "/Users/judy/workspace/test/2020/test_gradle/src/test/java/export/DemoJava.java",
        }).collect(collector);

        // 打印
        for (Map.Entry<String, List<String>> entry : collect.entrySet()) {
            System.out.println("-------------------华丽分割线----------------------");
            System.out.println(entry.getKey());
            entry.getValue().forEach(System.out::println);
        }
    }


}
